package edu.pku.sei.transformation.editor.controller.commands.link;

import edu.pku.sei.transformation.editor.model.variable.ConnectionVariable;
import edu.pku.sei.transformation.editor.model.variable.ObjectVariable;

public class ConnectionVariableCreateCommand extends LinkTemplateCreateCommand {

	public ConnectionVariableCreateCommand(ConnectionVariable connection,
			ObjectVariable source) {
		super(connection, source);
	}
	
	@Override
	public boolean canExecute() {
		if (!(source instanceof ObjectVariable)
				|| !(target instanceof ObjectVariable))
			return false;
		return super.canExecute();
	}
}
